package com.itheima.mapper;

import com.itheima.pojo.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface TaskMapper {

    public void insert(Task task);

    public List<Task> getTaskList(Task task);

    @Update("update task set is_finish=1 where id = #{id}")
    public void submit(Task task);
}
